package com.zzq.my.jetpacks.jectpackapp.view;

import android.content.Context;
import android.util.AttributeSet;

import androidx.recyclerview.widget.RecyclerView;

public class MyRecycleView extends RecyclerView {

	public MyRecycleView(Context context) {
		super(context);
	}

	public MyRecycleView(Context context, AttributeSet attrs) {
		super(context, attrs);
	}

	public MyRecycleView(Context context, AttributeSet attrs, int defStyle) {
		super(context, attrs, defStyle);
	}
	/**
	 * 重写ListView的OnMesure 方法。
	 */
	@Override
	protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
		int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST);
		super.onMeasure(widthMeasureSpec, expandSpec);
	}

}
